<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	this.imagePreview = function(){	
	xOffset = 10;
	yOffset = 30;
	$("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' width='200' height='150' />"+ c +"</p>");			
		$("#preview").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px").fadeIn("fast");						
    	},
	function(){
		this.title = this.t;	
		$("#preview").remove();
    	});	
	$("a.preview").mousemove(function(e){
		$("#preview").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px");
	});			
};
$(document).ready(function(){
	imagePreview();
});
</script>
<style>
#preview{
	position:absolute;
	border:1px solid #ccc;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Genomic Prep from Intermediates (D)</title>
</head>
<body>
<table width = "100%" bgcolor="#DBF3FF">
	<tr>
		<td width="70%">
			Genomic Prep from Intermediates (D)
		</td>
		<td width="10%">
		 	<s:form action="GenePrepIntermediatesHistory">
				<s:hidden value="%{geneName}" name="geneName" />
				<s:hidden value="D" name="type" />
				<s:submit value="history"/>
			</s:form>
		</td>
		<td width="10">
			<s:form action="emergencyReport" id="emergencyPrepIntermediatesD">
			<s:hidden value="%{geneName}" name="geneName" />
			<s:hidden value="Genomic Prep from Intermediates (D)" name="formName"/>
			<input type="button" value="report" onclick="reportEmergencyPrepIntermeidatesD()"/>
			</s:form>
		</td>
	</tr>
</table>
<center>
Genename:<s:property value="geneName"/>
<s:form action="updateGenePrepIntermediates" id="updateGenePrepIntermeidatesD">
<h3>260 - 269</h3>
<table>
<tr><td><s:textfield label="Date" name="date1"></s:textfield></td></tr>
</table>
<table width="100%">
	<tr>
		<td width="25%"><table><tr><td>Diagnostic PCR(260-269)</td></tr></table></td>
		<td width="25%"><table><tr><td><s:textfield label="X" name="pcrX1"/></td></tr></table></td>
		<td width="25%"><table><tr><td><s:textfield label="Y" name="pcrY1"/></td></tr></table></td>
		<td width="25%"><table><tr><td>Z : Control(TFB primers)</td></tr></table></td>
	</tr>
</table>
<table width="100%">
	<tr>
	<td width="25%">
		<table><tr><td>Expected size</td></tr></table>
	</td>
	<td width="25%">
		<table>
		<s:if test='x1 == 0'><tr><td><s:textfield label="X" name="x1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="X" name="x1"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='y1 == 0'><tr><td><s:textfield label="Y" name="y1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Y" name="y1"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='z1 == 0'><tr><td><s:textfield label="Z" name="z1" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Z" name="z1"/></td></tr></s:else>
		</table>
	</td>
</table>
<table width="100%">
	<tr>
		<td width="10%">
			<table>
				<tr>
					<td>260</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x260" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y260" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z260" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>261</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x261" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y261" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z261" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>262</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x262" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y262" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z262" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>263</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x263" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y263" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z263" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>264</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x264" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y264" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z264" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>265</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x265" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y265" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z265" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>266</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x266" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y266" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z266" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>267</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x267" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y267" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z267" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>268</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x268" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y268" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z268" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>269</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x269" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y269" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z269" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<h3>270 - 279</h3>
<table>
<tr><td><s:textfield label="Date" name="date2"></s:textfield></td></tr>
</table>
<table width="100%">
	<tr>
		<td width="25%"><table><tr><td>Diagnostic PCR(270-279)</td></tr></table></td>
		<td width="25%"><table><tr><td><s:textfield label="X" name="pcrX2"/></td></tr></table></td>
		<td width="25%"><table><tr><td><s:textfield label="Y" name="pcrY2"/></td></tr></table></td>
		<td width="25%"><table><tr><td>Z : Control(TFB primers)</td></tr></table></td>
	</tr>
</table>
<table width="100%">
	<tr>
	<td width="25%">
		<table><tr><td>Expected size</td></tr></table>
	</td>
	<td width="25%">
		<table>
		<s:if test='x2 == 0'><tr><td><s:textfield label="X" name="x2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="X" name="x2"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='y2 == 0'><tr><td><s:textfield label="Y" name="y2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Y" name="y2"/></td></tr></s:else>
		</table>
	</td>
	<td width="25%">
		<table>
		<s:if test='z2 == 0'><tr><td><s:textfield label="Z" name="z2" value=""/></td></tr></s:if>
		<s:else><tr><td><s:textfield label="Z" name="z2"/></td></tr></s:else>
		</table>
	</td>
	<tr>
</table>
<table width="100%">
	<tr>
		<td width="10%">
			<table>
				<tr>
					<td>270</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x270" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y270" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z270" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>271</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x271" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y271" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z271" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>272</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x272" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y272" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z272" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>273</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x273" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y273" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z273" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>274</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x274" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y274" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z274" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>275</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x275" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y275" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z275" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>276</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x276" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y276" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z276" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>277</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x277" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y277" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z277" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>278</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x278" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y278" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z278" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
		<td width="10%">
			<table>
				<tr>
					<td>279</td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="X" name="x279" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Y" name="y279" list="{'Y','N'}" /></td>
				</tr>
				<tr>
					<td width="10%"><s:radio label="Z" name="z279" list="{'Y','N'}" /></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table>
<tr><td><s:hidden name="geneName" value="%{geneName}"/></td></tr>
<tr><td><s:hidden name="type" value="D"/></td></tr>
<tr><td><input type="button" value="update" onclick="updatePrepIntermeidatesD()"/></td></tr>
</table>
</s:form>
</center>
<center>
	<p></p> 
	<table width="50%">
		<tr bgcolor="#DBF3FF">
		<td>Date Uploaded</td>
		<td>Uploader</td>
		<td>File Name</td>
		<td>Option</td>
		</tr> 
		<s:iterator value="imageList">
        <tr bgcolor="#E1EBED">
        	<td width="28%"><s:date name="dateModified" format="MM/dd/yyyy hh:mm:ss a"/></td>
        	<td width="15%"><s:property value = "user.userName"/></td>
        	<td><a href="<s:url action = "ViewImage"><s:param name = "id"><s:property value="id"/></s:param></s:url>"><s:property value= "fileName"/></a></td>
        	<td><a href="upload/<s:property value="fileName"/>" class="preview">Preview</a>
        </tr>
        </s:iterator>       
   </table>   
<br>
</center>
</body>
</html>